<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>jquery end操作</title>
		<script src="../js/jquery-3.4.1.min.js"></script>
		<script>
		 $(function(){
			$("ul li").first().css("font-size","50px").end().last().css({"font-size":"100px","color":"blue"}).end().eq(2).css("border","4px solid green");
			alert($("h2").next().is("ul"));
			//$("ul li").last().css("font-size","150px");
		 });
		</script>
	</head>
	<body>
		<h2>常见的水果</h2>
		<ul id="fruit">
			<li>桃子</li>
			<li>苹果</li>
			<li>香蕉</li>
			<li>柿子</li>
			<li>菠萝</li>
		</ul>
	</body>
</html>
